package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.CategoryMapper;
import com.zygh.policeasset.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * zhuhongyu
 */
@Service
public class CategoryService {

    @Autowired
    CategoryMapper categoryMapper;

    public List<Category> findAll(){
        return categoryMapper.findAll();
    }

    public Category findById(int id){
        return categoryMapper.findById(id);
    }

}
